package com.hibase.upms.service.userrole;


import com.hibase.core.mybatis.service.BaseService;
import com.hibase.upms.entity.userrole.MdsUserRole;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hufeng
 * @since 2019-04-03
 */
public interface MdsUserRoleService extends BaseService<MdsUserRole> {

    /**
     * 查询当前用户所分配的角色code
     *
     * @param userId
     * @return
     */
    List<String> selectRoleIdByCurrentUser(String userId);

    String selectRoleIdByCode(String code);
}
